package com.joe.other;

public class Control {


    public static void main(String[] args) {

        Child child = new Child(1, "name", 10, "it is a better idea");


        Parent parent = child;
        Parent x = T2.fromParent(child);
        System.out.println(x);
    }


    private void printParent(Parent p) {
        System.out.println("printParent:" + p.toString());
    }

    private void printChild(Parent p) {
        System.out.println("printChild:" + ((Child) p).toString());
    }


}
